package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.task.Exploit;
import org.example.mapper.ExploitMapper;
import org.example.service.ExploitService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author 魏锴
 * @description 针对表【tb_task_exploit】的数据库操作Service实现
 * @createDate 2024-01-13 14:47:39
 */
@Service
public class ExploitServiceImpl extends ServiceImpl<ExploitMapper, Exploit>
        implements ExploitService {

    @Override
    public List<Exploit> getExploitList(int username) {
        return baseMapper.getExploitList(username);
    }

    @Override
    public boolean insertExploit(Exploit exploit) {
        exploit.setExploitTime(new Date());
        return baseMapper.insertExploit(exploit);
    }

}




